package com.yijiaw.service;

import com.yijiaw.domain.Message;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Message entities
 * 
 */
public interface MessageService {

	/**
	 * Load an existing Message entity
	 * 
	 */
	public Set<Message> loadMessages();

	/**
	 * Return a count of all Message entity
	 * 
	 */
	public Integer countMessages();

	/**
	 * Return all Message entity
	 * 
	 */
	public List<Message> findAllMessages(Integer startResult, Integer maxRows);

	/**
	 */
	public Message findMessageByPrimaryKey(Integer id);

	/**
	 * Delete an existing Message entity
	 * 
	 */
	public void deleteMessage(Message message);

	/**
	 * Save an existing Message entity
	 * 
	 */
	public void saveMessage(Message message_1);
}